import request from '@/utils/request.js'
import Qs from 'qs'

export const loginAPI = function (username, password) {
  const data = {
    username,
    password
  }
  return request({
    method: 'POST',
    url: '/api/login',
    data: Qs.stringify(data)
  })
}
